import type { goodsDetailResult } from '@/types/goods'
import { http } from '@/utils/http'

// 根据id获取商品详情
export const getGoodsDetailApi = (id: string) => {
  return http<goodsDetailResult>({
    method: 'GET',
    url: '/goods',
    data: { id },
  })
}
